package com.cxl.entity;


import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.util.Date;

public class Remark implements Serializable {

  private Integer rid;
  private String content;
  private Integer score;
  @DateTimeFormat(pattern = "yyyy-MM-dd")
  private Date date;
  private Integer cid;
  private Integer uid;


  private String uname;

  @Override
  public String toString() {
    return "Remark{" +
            "rid=" + rid +
            ", content='" + content + '\'' +
            ", score=" + score +
            ", date=" + date +
            ", cid=" + cid +
            ", uid=" + uid +
            ", uname='" + uname + '\'' +
            '}';
  }

  public String getUname() {
    return uname;
  }

  public void setUname(String uname) {
    this.uname = uname;
  }

  public Remark(Integer rid, String content, Integer score, Date date, Integer cid, Integer uid, String uname) {
    this.rid = rid;
    this.content = content;
    this.score = score;
    this.date = date;
    this.cid = cid;
    this.uid = uid;
    this.uname = uname;
  }

  public Integer getUid() {
    return uid;
  }

  public void setUid(Integer uid) {
    this.uid = uid;
  }

  public Remark(Integer rid, String content, Integer score, Date date, Integer cid, Integer uid) {
    this.rid = rid;
    this.content = content;
    this.score = score;
    this.date = date;
    this.cid = cid;
    this.uid = uid;
  }

  public Integer getRid() {
    return rid;
  }

  public void setRid(Integer rid) {
    this.rid = rid;
  }

  public String getContent() {
    return content;
  }

  public void setContent(String content) {
    this.content = content;
  }

  public Integer getScore() {
    return score;
  }

  public void setScore(Integer score) {
    this.score = score;
  }

  public Date getDate() {
    return date;
  }

  public void setDate(Date date) {
    this.date = date;
  }

  public Integer getCid() {
    return cid;
  }

  public void setCid(Integer cid) {
    this.cid = cid;
  }

  public Remark() {
  }

  public Remark(Integer rid, String content, Integer score, Date date, Integer cid) {
    this.rid = rid;
    this.content = content;
    this.score = score;
    this.date = date;
    this.cid = cid;
  }
}
